package com.grade.service.Impl;

import com.grade.Beans.Scores;
import com.grade.Beans.Subjects;
import com.grade.mapper.ScoresMapper;
import com.grade.service.ScoresService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;
import java.util.Map;
@Service
public class ScoresServiceImpl implements ScoresService {
    @Autowired
    ScoresMapper scoresMapper;
    @Override
    public List<Scores> findByScoresPage(Map map) {
        return scoresMapper.findByScoresPage(map);
    }

    @Override
    public int findByScores(Map map) {
        return scoresMapper.findByScores(map);
    }

    @Override
    public int addScores(Scores scores) {
        return scoresMapper.addScores(scores);
    }

    @Override
    public Subjects findById(int id) {
        return scoresMapper.findById(id);
    }

    @Override
    public int deleteScores(int id) {
        return scoresMapper.deleteScores(id);
    }

    @Override
    public int updateScores(Scores scores) {
        return scoresMapper.updateScores(scores);
    }

    @Override
    public List<Scores> findByScoresStudent(int studentNo) {
        return scoresMapper.findByScoresStudent(studentNo);
    }
}
